package com.qdairlines.service.exflightinform.impl;

import com.qdairlines.common.RestClient;
import com.qdairlines.entity.exflightinform.AbnormalFlight;
import com.qdairlines.service.exflightinform.ExFlightService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by yanxiguo on 2017/9/21.
 */
@Service
public class ExFlightServiceImpl implements ExFlightService{

    @Autowired
    private RestClient restClient;

    @Override
    public List<AbnormalFlight> getAbnormalFlights(String flightDate,String flightNo){
        List<AbnormalFlight> abnormalFlights=restClient.getFlightInfo(flightDate,flightNo);
        return abnormalFlights;
    }



}
